{include file="public/header" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<!-- 加载编辑器的容器 -->
{:ueditor()}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="tabs-container">
                    <div class="tab-content">
                        <div class="ibox-content">
                            <div class="form-group" id="category">
                                <label class="col-sm-2 control-label">分类：</label>
                                <div class="col-sm-9">
                                    <select class="form-control" name="category">
                                        {php}
                                        if(isset($name)){
                                        $typeidname=$name['category'];
                                        }else{
                                        $typeidname='';
                                        }
                                        {/php}

                                        {volist name='category' id='v'}
                                        <option value="{$v.id}" {eq name="v.id" value="$typeidname" }selected{/eq}>{$v.title}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">标题：</label>
                                <div class="col-sm-2">
                                    <input name="title" type="text" class="form-control" placeholder="" value="{present name='name'}{$name['title']}{/present}" >
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">内容：</label>
                                <div class="col-sm-9">
                                    <script type="text/plain" id="content" name="content" style="width:100%;height:240px;">
        {present name="name"}{$name['content']}{/present}

        </script>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
<script type="text/javascript">

    layui.use(['laydate'], function(){
        var laydate = layui.laydate;
        var form = layui.form;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
            ,trigger: 'click'
        });
    })


    $(document).ready(function(){
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        })
    });
    function msg(){
        layer.msg("上传成功")
    }
    function time(){
        laydate(
            {
                fixed: false,
                istime: true,
                format: 'YYYY-MM-DD hh:mm:ss',
                zIndex: 999999999999,
                isclear: false,
            }
        )
    }
</script>
{include file="public/bottom" /}

